<script setup lang="ts">
import { useRouter } from 'vue-router'

const router = useRouter()

const goBack = () => {
  router.back()
}

const goHome = () => {
  router.push('/')
}
</script>

<template>
  <div class="not-found-container h-screen flex-center flex-col bg-gray-50">
    <div class="text-center">
      <h1 class="text-9xl font-bold text-primary mb-4">404</h1>
      <h2 class="text-2xl font-medium mb-6">页面不存在</h2>
      <p class="text-gray-500 mb-8">抱歉，您访问的页面不存在或已被移除。</p>
      <div class="flex gap-4 justify-center">
        <el-button @click="goBack">返回上一页</el-button>
        <el-button type="primary" @click="goHome">返回首页</el-button>
      </div>
    </div>
  </div>
</template>
